import { Entity, Column, PrimaryGeneratedColumn } from 'typeorm';
import { Base } from '../base.entity';

@Entity()
export class UserList extends Base {

  //用户名
  @Column({ length: 30, comment: '用户名' })
  username: string;

  //密码
  @Column({ length: 50, comment: '密码' })
  password: string;

  //手机号码
  @Column({ length: 50, nullable: true, comment: '手机号码' })
  telphone: string;

  //昵称
  @Column({ length: 30, nullable: true, comment: '昵称' })
  nickname: string;

  //所属商户
  @Column({ comment: '所属商户ID', default: 0 })
  business_id: number;

  //描述
  @Column({ comment: '描述', nullable: true })
  user_describe: string;

  //创建人user_id
  @Column({ comment: '创建人user_id', nullable: true })
  user_id: number;


}